package net.sareweb.acab.session;

import net.sareweb.acab.entity.*;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.framework.EntityQuery;
import java.util.Arrays;

@Name("dialogList")
public class DialogList extends EntityQuery<Dialog> {

	private static final String EJBQL = "select dialog from Dialog dialog";

	private static final String[] RESTRICTIONS = {};

	private Dialog dialog = new Dialog();

	public DialogList() {
		setEjbql(EJBQL);
		setRestrictionExpressionStrings(Arrays.asList(RESTRICTIONS));
		setMaxResults(25);
	}

	public Dialog getDialog() {
		return dialog;
	}
}
